//
//  TFPageViewController.h
//  TFFoundation
//
//  Created by TFAppleWork-Summer on 2017/8/15.
//  Copyright © 2017年 TFAppleWork-Summer. All rights reserved.
//

#import <UIKit/UIKit.h>

//util
#import "TFSegmentView.h"
#import "TFPageViewControllerContainerView.h"

/**
 默认pageVC，此vc不可单独使用，只能继承，然后重写itemsArrayForSegmentView和viewControllerForItem两个方法
 */
@interface TFPageViewController : UIViewController

/**
 分割view
 */
@property (nonatomic, strong, readonly, nonnull) TFSegmentView *segmentView;

/**
 pageVC容器view
 */
@property (nonatomic, strong, readonly, nonnull) TFPageViewControllerContainerView *pageControllerContainerView;

/**
 返回segmentView对应的itemArray

 @return NSArray<NSString *>
 */
- (nonnull NSArray<NSString *> *)itemsArrayForSegmentView;

/**
 对应segment item的VC

 @param item item
 @param index 索引
 @return UIViewController
 */
- (nonnull __kindof  UIViewController *)viewControllerForItem:(nonnull NSString *)item atIndex:(NSInteger)index;

@end
